import java.util.*;
public class lk2478 {
    public static void main(String[] args) {
        
    }
    public ListNode removeNodes(ListNode head) {
        ListNode fast=head;
        ListNode low=head;
        int a[]=new int[100001];
        int i=0;
        while(fast!=null){
            a[i]=fast.val;
            fast=fast.next;
        }
        int b[]=new int[i+1];
        for(int j=0;j<i+1;j++){
            b[j]=a[j];
        }
        int m=0,n=1;
        while(true){
            if(a[m]<a[n])
        }

    }
}
